//
//  LCHTMLBaseViewController.h
//  JKFuYinProject
//
//  Created by admin on 2018/6/25.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LCViewController.h"
#import "LCWebViewToolBar.h"
#import <WebKit/WebKit.h>
#import "LCProgressView.h"

@interface LCHTMLBaseViewController : LCViewController
<WKUIDelegate,WKNavigationDelegate,WKScriptMessageHandler>

@property (nonatomic,copy) NSString *link;

@property (nonatomic,strong) WKWebView *webView;

@property (nonatomic,copy) NSString *titleStr;

@property (nonatomic,copy) NSString *type;

@property (nonatomic, strong) LCProgressView *progressView;//进度条

@property (nonatomic, assign) BOOL isShowToolBar;

/**  自定义的toolBar  */
@property (nonatomic, strong) LCWebViewToolBar *customToolBar;

@property (strong, nonatomic) void(^shouldStartLoadBlock)(NSString *url);

@property (nonatomic,assign) BOOL isLoad;//是否加载

@property (nonatomic, strong) NSArray *scriptNameArr;

- (void)setupWebViewLayout;
- (void)getHtmlContent:(NSString *)content;
- (void)lcJavaScriptInteractionWithReceiveScriptMessage:(WKScriptMessage *)message;
@end
